<?php 
//$attr: value set from functions.php->dktm_event_share();
$start_date = $attr['start_date'];
$end_date = $attr['end_date'];
$summary = $attr['title'];
$description = $attr['description'];
$location = $attr['location'];
$organizer = $attr['organizer'];
$organizer_email = $attr['organizer_email'];
$all_day_event = $attr['all_day_event'];
$date_format = 'DD/MM/YYYY';
$zonecode = '';
?>
<a href="javascript:void(0);" title="Add to Calendar" class="addthisevent">
	Add to Calendar
        <span class="fa fa-angle-down arrow">&nbsp;</span>
         <?php if($start_date!=""){?><span class="_start"><?php echo $start_date;?></span> <?php }?>
	 <?php if($end_date!=""){?><span class="_end"><?php echo $end_date;?></span><?php }?>
	 <?php if($zonecode!=""){?><span class="_zonecode"><?php echo $zonecode;?></span><?php }?>
	 <?php if($summary!=""){?><span class="_summary"><?php echo $summary;?></span><?php }?>
	 <?php if($description!=""){?><span class="_description"><?php echo $description;?></span><?php }?>
	 <?php if($location!=""){?><span class="_location"><?php echo $location;?></span><?php }?>
	 <?php if($organizer!=""){?><span class="_organizer"><?php echo $organizer;?></span><?php }?>
	 <?php if($organizer_email!=""){?><span class="_organizer_email"><?php echo $organizer_email;?></span><?php }?>
	 <?php if($all_day_event!=""){?><span class="_all_day_event"><?php echo $all_day_event;?></span><?php }?>
         <?php if($date_format!=""){?><span class="_date_format"><?php echo $date_format;?></span><?php }?>
</a>
<!--<a href="javascript:void(0);" title="Add to Calendar" class="addthisevent">
	Add to Calendar
	<span class="fa fa-angle-down arrow">&nbsp;</span>
	<span class="_start">10-05-2012 11:38:46</span>
	<span class="_end">11-05-2012 11:38:46</span>
	<span class="_zonecode">40</span>
	<span class="_summary">Summary of the event</span>
	<span class="_description">Description of the event</span>
	<span class="_location">Location of the event</span>
	<span class="_organizer">Organizer</span>
	<span class="_organizer_email">Organizer e-mail</span>
	<span class="_all_day_event">true</span>
	<span class="_date_format">DD/MM/YYYY</span>
</a>-->